import request from '@/api/request1.js'

//获取首页导航
function getnav(data){
	return request({
		url: '/materiel/navList',
		method: 'post',
		data
	})
}
//获取首页banner
function getbanner(data){
	return request({
		url: '/materiel/bannerList',
		method: 'post',
		data
	})
}
//获取首页公告
function getnotice(data){
	return request({
		url: '/article/recentNews',
		method: 'post',
		data
	})
}
function getnoticedetail(data){
	return request({
		url: '/article/detail',
		method: 'get',
		data
	})
}
//获取用户关注关注类型
function getfollowtype(data){
	return request({
		url: '/user/collect/general',
		method: 'post',
		data
	})
}
//获取用户关注列表
function getfollowlist(data){
	return request({
		url: '/user/collect/list',
		method: 'post',
		data
	})
}
//用户是否关注
function getdocfollow(data){
	return request({
		url: '/user/collect/isCollect',
		method: 'post',
		data
	})
}
//添加关注
function addfollow(data){
	return request({
		url: '/user/collect/add',
		method: 'post',
		data
	})
}
//取消关注
function delfollow(data){
	return request({
		url: '/user/collect/del',
		method: 'post',
		data
	})
}
//获取医生详情
function getdocinfo(data){
	return request({
		url: '/api/doctor/getDoctorInfo',
		method: 'post',
		data
	})
}
//获取医生坐诊地点
function gethoslist(data){
	return request({
		url: '/api/doctor/getPlaceInfos',
		method: 'post',
		data
	})
}
//获取上下午排班
function getpaiban(data){
	return request({
		url: '/api/schesource/getSchedules',
		method: 'post',
		data
	})
}
//获取小时段
function getxiaoshi(data){
	return request({
		url: '/api/schesource/getScheduleTime',
		method: 'post',
		data
	})
}
//获取评价
function getpingjia(data){
	return request({
		url: '/api/doctor/getComments',
		method: 'post',
		data
	})
}
//获取评分
function getdocfen(data){
	return request({
		url: '/api/doctor/getDoctorAttach',
		method: 'post',
		data
	})
}
export default {
	getnoticedetail,
	getdocfen,
	getpingjia,
	getxiaoshi,
	getpaiban,
	getnotice,
	getfollowlist,
	 getfollowtype,
	getnav,
	getbanner,
	getdocinfo,
	gethoslist,
	getdocfollow,
	addfollow,
	delfollow
}